package ntd.util.config.common.enums.protocol;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
import ntd.util.config.common.enums.BaseEnumInterface;

@AllArgsConstructor
public enum EnumStreamUrlProtocol implements BaseEnumInterface {

    PROTOCOL_HIK("hik"),
    PROTOCOL_RTSP("rtsp"),
    PROTOCOL_RTMP("rtmp"),
    PROTOCOL_HLS("hls"),
    PROTOCOL_WS("ws"),
    ;

    @Setter
    @Getter
    private String protocolName;

    @Override
    public String getName() {
        return this.name();
    }

    @Override
    public String getValue() {
        return this.name();
    }
}
